package com.fengye.resign;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * @author sunlei
 * @version 1.0
 * @date 2024/5/21 09:01:46
 * @description 重签名服务启动类
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.fengye.*.mapper"})
// TODO: 用"com.fengye.common"，会导致自动装配失效，swagger的配置文件失效了，但是用"com.fengye.*"就没问题，真TM神奇
// @ComponentScan(basePackages = {"com.fengye.common"})
@ComponentScan(basePackages = {"com.fengye.*"})
public class ResignApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ResignApplication.class, args);
        System.out.println(run);
    }
}
